package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysAResidentListMapper;
import com.ruoyi.system.domain.SysAResidentList;
import com.ruoyi.system.service.ISysAResidentListService;
import com.ruoyi.common.core.text.Convert;

/**
 * 住户管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-11-09
 */
@Service
public class SysAResidentListServiceImpl implements ISysAResidentListService 
{
    @Autowired
    private SysAResidentListMapper sysAResidentListMapper;

    /**
     * 查询住户管理
     * 
     * @param residentId 住户管理主键
     * @return 住户管理
     */
    @Override
    public SysAResidentList selectSysAResidentListByResidentId(String residentId)
    {
        return sysAResidentListMapper.selectSysAResidentListByResidentId(residentId);
    }

    /**
     * 查询住户管理列表
     * 
     * @param sysAResidentList 住户管理
     * @return 住户管理
     */
    @Override
    public List<SysAResidentList> selectSysAResidentListList(SysAResidentList sysAResidentList)
    {
        return sysAResidentListMapper.selectSysAResidentListList(sysAResidentList);
    }

    /**
     * 新增住户管理
     * 
     * @param sysAResidentList 住户管理
     * @return 结果
     */
    @Override
    public int insertSysAResidentList(SysAResidentList sysAResidentList)
    {
        return sysAResidentListMapper.insertSysAResidentList(sysAResidentList);
    }

    /**
     * 修改住户管理
     * 
     * @param sysAResidentList 住户管理
     * @return 结果
     */
    @Override
    public int updateSysAResidentList(SysAResidentList sysAResidentList)
    {
        return sysAResidentListMapper.updateSysAResidentList(sysAResidentList);
    }

    /**
     * 批量删除住户管理
     * 
     * @param residentIds 需要删除的住户管理主键
     * @return 结果
     */
    @Override
    public int deleteSysAResidentListByResidentIds(String residentIds)
    {
        return sysAResidentListMapper.deleteSysAResidentListByResidentIds(Convert.toStrArray(residentIds));
    }

    /**
     * 删除住户管理信息
     * 
     * @param residentId 住户管理主键
     * @return 结果
     */
    @Override
    public int deleteSysAResidentListByResidentId(String residentId)
    {
        return sysAResidentListMapper.deleteSysAResidentListByResidentId(residentId);
    }
}
